package com.gzsxy.rabbitmq.consumer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gzsxy.rabbitmq.consumer.dao.MessageMapper;
import com.gzsxy.rabbitmq.consumer.entity.MessageIdempotent;
import com.gzsxy.rabbitmq.consumer.service.MessageService;
import org.springframework.stereotype.Service;

/**
 * @Description: TODO
 * @Author: xiaolong
 * @date: 2023/2/16 16:02
 * @Version: 1.0
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, MessageIdempotent> implements MessageService {

    /**
     * 添加异常消息
     */
    @Override
    public void addErrorMsg(MessageIdempotent messageIdempotent) {
        baseMapper.insert(messageIdempotent);
    }
}
